@import "../../styles/common.scss";

.modal {
    position: fixed;
    background-color: var(--bg-color-substrate);
    opacity: 0;
    pointer-events: auto;
    display: grid;
    overflow-y: visible;
    justify-content: center;
    align-items: center;
    //inset: 0;
    top: 0;
    width: 100%;
    height: 100%; //desktop only
    z-index: 100;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
  
    &.open {
        opacity: 1;
        backdrop-filter: var(--blur25);
        pointer-events: auto;
        overflow: hidden;
    }
  }

@media only screen and (max-width: 1270px) {
    .modal {
      font-size: 14px;
    }
  }
  
@media only screen and (max-width: 600px) {
    .modal {
      font-size: 12px;
    }
  }

.modal-header {
  margin: 10px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.modal-body {
  margin: 10px;
}

.modal-buttons {
  margin: 0 auto;
}

// rewrite/remove? its for server.mods details block
.server-mods-details-content {
  //font-size: 10px;
  background: var(--bg-color);
  border: 2px solid var(--color-substrate);
  border-radius: 5px;
  margin: 10px;
  padding: 5px;
  overflow-y: scroll;
  max-height: 19ex;
  height: min-content;
}

@media only screen and (max-width: 1270px) {
  .server-mods-details-content {
    max-height: 11.5ex;
  }
}